Test-Driven React: Find Problems Early, Fix Them Quickly, Code with Confidence

Test-Driven React: Find Problems Early, Fix Them Quickly, Code with Confidence

作者: Burnham Trevor
出版社: Pragmatic Bookshelf
出版在: 2019-06-16
ISBN-13: 9781680506464
ISBN-10: 1680506463
裝訂格式: Quality Paper - also called trade paper
總頁數: 170 頁





內容描述


You work in a loop: write code, get feedback, iterate. The faster you get feedback, the faster you can learn and become a more effective developer. Test-Driven React helps you refine your React workflow to give you the feedback you need as quickly as possible. Write strong tests and run them continuously as you work, split complex code up into manageable pieces, and stay focused on what's important by automating away mundane, trivial tasks. Adopt these techniques and you'll be able to avoid productivity traps and start building React components at a stunning pace
React has revolutionized web development by abstracting away the details of DOM manipulation. That conceptual elegance has opened the door to a new generation of web testing: clear, expressive, and lightning-fast. That makes React a perfect fit for test-driven development (TDD), a methodology in which tests are a blueprint instead of an afterthought.
Each chapter will present new projects to challenge you and new tools to help you. Write fast, portable tests with Jest. Keep your code tidy with ESLint and Prettier. Perform every task you need from a single window with VS Code. See your test output directly in your code with Wallaby. Use the JavaScript features of the future with Babel. Make assertions about React component behavior with Enzyme. And style components in a testable way with styled-components. By understanding every piece of your project's stack, you'll feel more confident and able to focus on what matters: writing reliable and maintainable code.
Discover a more joyful React development experience. Let your tests lead the way
What You Need:
You'll need a working knowledge of JavaScript and a computer running macOS, Windows, or Linux.


作者介紹


Trevor Burnham is an engineer at HubSpot in Cambridge, MA. His previous books include CoffeeScript and Async JavaScript, both published by PragProg. You can follow him on Twitter as @trevorburnham.




相關書籍

物聯網系統架構設計與邊緣計算(原書第2版)

作者 Perry Lea 中國移動設計院北京分院譯譯

2019-06-16

區塊鍊與大數據 - 打造智慧經濟

作者 井底望天 武源文 趙國棟 劉文獻 主編

2019-06-16

PHP動態網站開發(全案例微課版)

作者 李佳康

2019-06-16